package com.itheima.api.exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Demo01 {

    public static void main(String[] args) throws ParseException {

        String s = "2019-07-13";
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/mm/dd");
        Date date = simpleDateFormat.parse(s);
        System.out.println(date);

    }

}
